Skip to content

[pull] main from lynx-family:main#545

Merged
pull[bot] merged 1 commit intocolinaaa:mainfrom
lynx-family:main
Mar 17, 2026
Merged

[pull] main from lynx-family:main#545
pull[bot] merged 1 commit intocolinaaa:mainfrom
lynx-family:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Mar 17, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

## Summary

Implements `__ElementAnimate` PAPI for the web platform layer, enabling
Web Animations API support in the REPL and web environment. Previously,
this function was undefined causing `ReferenceError` when worklet code
called animations.

## Changes

- **web-constants**: Added `ElementAnimatePAPI` type to
`MainThreadGlobalThis`
- **web-mainthread-apis**: Implemented `__ElementAnimate` with animation
map tracking and timing option mapping (Lynx → Web Animations API)
- **testing-environment**: Added `__ElementAnimate` implementation with
state tracking for unit tests
- **Tests**: 5 new test cases covering all animation operations
(START/PLAY/PAUSE/CANCEL/FINISH)
- **REPL example**: Interactive demo showing element animation with
pause/play/cancel/restart controls

## Verification

✅ Rebased onto main with upstream REPL site  
✅ Added comprehensive unit tests (testing-environment)  
✅ Created manual UI test in REPL at http://localhost:3003/  
✅ All pre-commit hooks passed (eslint, biome, dprint)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Element animation support: start, pause, play, cancel, finish for
named element animations; public APIs exposed for driving these
operations.
* New interactive "Element Animate" sample: pulsing element, playback
status label, control buttons, a render entry point and a simple
worklet-style router for demo controls.

* **Tests**
* Unit and end-to-end tests covering the full animation lifecycle and
state transitions.

* **Documentation**
  * Changeset entry documenting the animation PAPI addition.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@pull pull Bot locked and limited conversation to collaborators Mar 17, 2026
@pull pull Bot added the ⤵️ pull label Mar 17, 2026
@pull pull Bot merged commit 2efecc2 into colinaaa:main Mar 17, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant